package com.fjut.client.activity;


import com.fjut.model.activity.CouponInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-activity")
public interface CouponFeignClient {
    @ApiOperation("根据优惠券id查询优惠券")
    @GetMapping("/fjut/activity/couponInfo/getClientCouponById/{id}")
    CouponInfo getClientCouponById(@PathVariable("id") Long id);

    @ApiOperation("更新优惠券")
    @GetMapping("/fjut/activity/couponInfo/updateClientCouponStatus/{couponUseId}/{orderId}")
    Boolean updateClientCouponInfo(@PathVariable("couponUseId") Long couponUseId, @PathVariable("orderId") Long orderId);
}
